package com.gitee.muii.echarts.tests;

import org.junit.jupiter.api.Test;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.gitee.muii.echarts.util.types.SeriesOption;
import com.gitee.muii.echarts.util.types.StatesMixinBase;

class TestSeriesOption {
    
    @Test
    void testJson() {
        SeriesOption<Object, StatesMixinBase> seriesOption = new SeriesOption<>();
        seriesOption.setAnimationDuration(1L);
        ObjectMapper objectMapper = new ObjectMapper();
        try {
            String json = objectMapper.writeValueAsString(seriesOption);
            System.out.println(json);
        } catch ( JsonProcessingException e ) {
            e.printStackTrace();
        }
    }
    
}
